package cn.sinobest.pe.cons;

import cn.sinobest.knob.core.rpc.TaskState;
import cn.sinobest.knob.worker.watcher.TaskWatcher;

import org.pentaho.di.job.Job;

public class Task {
	
	private Job job;
	
	private TaskWatcher taskWatcher; 
	
	public Task(TaskWatcher taskWatcher, Job job ){
		this.job = job;
		this.taskWatcher = taskWatcher;
	}
	
	public Task(Job job , TaskWatcher taskWatcher){
		this.job = job;
		this.taskWatcher = taskWatcher;
	}

	public Job getJob() {
		return job;
	}

	public void setJob(Job job) {
		this.job = job;
	}
	
	public TaskWatcher getTaskWatcher() {
		return taskWatcher;
	}

	public void setTaskWatcher(TaskWatcher taskWatcher) {
		this.taskWatcher = taskWatcher;
	}
}
